<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="../$$.js"></script>
<script src="../prototype/Object.js"></script>
<script src="../prototype/Array.js"></script>
<script src="../prototype/String.js"></script>
<script src="../prototype/Function.js"></script>
<script src="../Class.js"></script>
<script src="../Component.js"></script>
<script src="../util/Task.js"></script>
<script src="../util/Thread.js"></script>
<script src="../DomHelper.js"></script>
<script src="../Element.js"></script>
<script src="../Ajax.js"></script>
<script src="../Ajax/Connection.js"></script>
<script>
/*$$.Ajax.request({
	url: 'test.php'
	,params: {a: 1, b: 'a'}
	,method: 'GET'
	,success: function(xhr){
		//console.log(xhr.responseText);
	}
});
$$.Ajax.request({
	url: 'test.php?abc=def'
	,params: {a: 1, b: 'a'}
	,success: function(xhr){
		//console.log(xhr.responseText);
	}
});*/
var con = new $$.Ajax.Connection({
	listeners: {
		success: {
			fn: function(con, xhr){
				console.log(xhr.responseText);
			}
			,scope: this
		}
	}	
});
/*con.onSuccess(function(con, xhr){
	console.log(xhr.responseText);	
});*/
con.request({
	url: 'test.php'
	,params: {a: 1, b: 'a'}
	,success: function(xhr){
		//console.log(xhr.responseText);
	}
});
/*var ajax = new $$.Ajax;
ajax.request({
	url: 'test.php'	
});
/*ajax.request({
	url: 'test.php'	
});*/
</script>
</head>

<body>
</body>
</html>
